<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHubListTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hub_list', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('园区名称');
            $table->string('description')->default('')->comment('园区简介');
            $table->string('address')->default('')->comment('园区地址');
            $table->string('content')->default('')->comment('园区详情');
            $table->string('cover')->default('')->comment('封面图');
            $table->string('images')->nullable()->comment('图集');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('hub_list');
    }
}
